/*
 * Copyright (C) 2019 The Turms Project
 * https://github.com/turms-im/turms
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: notification/turms_notification.proto

package im.turms.server.common.access.client.dto.notification;

public interface TurmsNotificationOrBuilder extends
    // @@protoc_insertion_point(interface_extends:im.turms.proto.TurmsNotification)
    com.google.protobuf.MessageOrBuilder {

  /**
   * <pre>
   * Response
   * request_id is used to tell the client that this notification is for the specific request
   * </pre>
   *
   * <code>optional int64 request_id = 1;</code>
   * @return Whether the requestId field is set.
   */
  boolean hasRequestId();
  /**
   * <pre>
   * Response
   * request_id is used to tell the client that this notification is for the specific request
   * </pre>
   *
   * <code>optional int64 request_id = 1;</code>
   * @return The requestId.
   */
  long getRequestId();

  /**
   * <code>optional int32 code = 2;</code>
   * @return Whether the code field is set.
   */
  boolean hasCode();
  /**
   * <code>optional int32 code = 2;</code>
   * @return The code.
   */
  int getCode();

  /**
   * <code>optional string reason = 3;</code>
   * @return Whether the reason field is set.
   */
  boolean hasReason();
  /**
   * <code>optional string reason = 3;</code>
   * @return The reason.
   */
  java.lang.String getReason();
  /**
   * <code>optional string reason = 3;</code>
   * @return The bytes for reason.
   */
  com.google.protobuf.ByteString
      getReasonBytes();

  /**
   * <code>.im.turms.proto.TurmsNotification.Data data = 4;</code>
   * @return Whether the data field is set.
   */
  boolean hasData();
  /**
   * <code>.im.turms.proto.TurmsNotification.Data data = 4;</code>
   * @return The data.
   */
  im.turms.server.common.access.client.dto.notification.TurmsNotification.Data getData();
  /**
   * <code>.im.turms.proto.TurmsNotification.Data data = 4;</code>
   */
  im.turms.server.common.access.client.dto.notification.TurmsNotification.DataOrBuilder getDataOrBuilder();

  /**
   * <pre>
   * Notification
   * requester_id only exists when a requester triggers a notification to its recipients
   * Note: Do not move requester_id to TurmsRequest because it requires rebuilding
   * a new TurmsNotification when recipients need the requester_id.
   * </pre>
   *
   * <code>optional int64 requester_id = 5;</code>
   * @return Whether the requesterId field is set.
   */
  boolean hasRequesterId();
  /**
   * <pre>
   * Notification
   * requester_id only exists when a requester triggers a notification to its recipients
   * Note: Do not move requester_id to TurmsRequest because it requires rebuilding
   * a new TurmsNotification when recipients need the requester_id.
   * </pre>
   *
   * <code>optional int64 requester_id = 5;</code>
   * @return The requesterId.
   */
  long getRequesterId();

  /**
   * <code>optional int32 close_status = 6;</code>
   * @return Whether the closeStatus field is set.
   */
  boolean hasCloseStatus();
  /**
   * <code>optional int32 close_status = 6;</code>
   * @return The closeStatus.
   */
  int getCloseStatus();

  /**
   * <code>.im.turms.proto.TurmsRequest relayed_request = 7;</code>
   * @return Whether the relayedRequest field is set.
   */
  boolean hasRelayedRequest();
  /**
   * <code>.im.turms.proto.TurmsRequest relayed_request = 7;</code>
   * @return The relayedRequest.
   */
  im.turms.server.common.access.client.dto.request.TurmsRequest getRelayedRequest();
  /**
   * <code>.im.turms.proto.TurmsRequest relayed_request = 7;</code>
   */
  im.turms.server.common.access.client.dto.request.TurmsRequestOrBuilder getRelayedRequestOrBuilder();
}
